﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MapleLeaf.IdentityServer.Models {
    /// <summary>
    /// 基础实体
    /// </summary>
    public abstract class BaseEntity {
        /// <summary>
        /// 主键
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("ML_ID"), Key]
        public int Id { set; get; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("ML_CREATOR")]
        public string Creator { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("ML_CREATETIME")]
        public DateTime? CreateTime { set; get; }
        /// <summary>
        /// 最后更新人
        /// </summary>
        [Column("ML_MODIFIER")]
        public string Modifier { set; get; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        [Column("ML_MODIFYTIME")]
        public DateTime? ModifyTime { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("ML_REMARK")]
        public string Remark { set; get; }
    }
}
